//
//  DNDAppDelegate.h
//  Do Not Disturb
//
//  Created by Chris Karr on 7/19/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "LearnerLogger.h"
#import "PrivacyManager.h"
#import "Predictor.h"

@interface DNDAppDelegate : Predictor 
{
	IBOutlet NSMenu * menu;
	IBOutlet NSMenuItem * menuItem;
	IBOutlet NSMenuItem * trainingItem;
	
	IBOutlet NSWindow * eventsWindow;
	IBOutlet NSWindow * preferencesWindow;
	IBOutlet NSWindow * trainingWindow;
	IBOutlet NSWindow * predictionWindow;

	IBOutlet NSButton * pause;
	IBOutlet NSButton * trainingButton;

	IBOutlet NSComboBox * statePulldown;

	IBOutlet NSArrayController * eventsController;
	
	IBOutlet NSProgressIndicator * updateProgress;
	
	BOOL available;
	NSStatusItem * theItem;
	
	NSTimer * timer;
	NSTimer * progressTimer;
	
	NSTimer * trainingTimer;
	
	NSSet * sensors;
	
	LearnerLogger * logger;
	
	IBOutlet PrivacyManager * privacyManager;
}

- (IBAction) about:(id) sender;
- (IBAction) preferences:(id) sender;
- (IBAction) quit:(id) sender;

- (IBAction) clear:(id) sender;
- (IBAction) toggleEventLog:(id) sender;

- (IBAction) scan:(id) sender;
- (IBAction) toggleScan:(id) sender;

- (IBAction) toggleTraining:(id) sender;
- (IBAction) setTrainingContext:(id) sender;

- (IBAction) setStatus:(id) sender;

- (IBAction) clearLog:(id) sender;

- (IBAction) togglePredictedStatus:(id) sender;
@end
